// dynamicRoute.js
const hrDynamicRoute = [
  // 管理员端路由
  {
      path: '/positionManage',
      name: 'positionManage',
      component: () => import('@/views/positionManage/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/invitationManage',
      name: 'invitationManage',
      component: () => import('@/views/invitationManage/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/cvPollManage',
      name: 'cvPollManage',
      component: () => import('@/views/CVPollManage/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/dataAnalusis',
      name: 'dataAnalusis',
      component: () => import('@/views/dataAnalusis/index.vue'),
      meta: {
          requireAuth: true
      },
  },
];

const userDynamicRoute = [
  // 用户端路由
  {
      path: '/positionList',
      name: 'positionList',
      component: () => import('@/views/positionList/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/myInvitation',
      name: 'myInvitation',
      component: () => import('@/views/myInvitation/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/applyManage',
      name: 'applyManage',
      component: () => import('@/views/applyManage/index.vue'),
      meta: {
          requireAuth: true
      },
  },
  {
      path: '/deliveryProcess',
      name: 'deliveryProcess',
      component: () => import('@/views/deliveryProcess/index.vue'),
      meta: {
          requireAuth: true
      },
  },
];

// 改成命名导出
export { hrDynamicRoute, userDynamicRoute };